package vertexArray

import "github.com/go-gl/gl/v3.3-core/gl"

type VertexArray struct {
	vao uint32
}

func NewVertexArray() *VertexArray {
	v := &VertexArray{}
	gl.GenVertexArrays(1,&v.vao)
	return v
}

func (v *VertexArray) Bind() {
	gl.BindVertexArray(v.vao)
}

func (v *VertexArray) UnBind() {
	gl.BindVertexArray(0)
}

